package com.kaifamiao.month04.day13;

public class demo {

    public static void tryDemo(int a ) {

        if (a > 12 || a < -1) {
            throw new AgeOutBoundOfExceptions();
        }
        try {

        }catch (AgeOutBoundOfExceptions e) {
            System.out.println("不合理");
        }
    }
}
class AgeOutBoundOfExceptions extends RuntimeException{
    public AgeOutBoundOfExceptions(){}
}
